import React from 'react';
import {createStackNavigator, createAppContainer} from "react-navigation";

import TabbarNavigator from './tabbar'
import Login from '../views/login'

const AppNavigator = createStackNavigator(
  {
    tabbarNavigator: {screen: TabbarNavigator},
    login: {screen: Login},
  },
  {
    // 初始导航路由
    initialRouteName: "login",
    // 导航栏类型
    headerMode: "screen",
  }
);

const AppContainer = createAppContainer(AppNavigator);

export default AppContainer;
